const sequelize = require('sequelize')
const db = require('../db')

const Service = db.define('service', {
    id: {
        type: sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false,
        fieId: 'id',
        comment: 'id'
    },
    name: {
        type: sequelize.STRING,
        allowNull: false,
        comment: '服务商名称',
        fieId: 'name'
    },
    company: {
        type: sequelize.STRING,
        allowNull: false,
        comment: '公司名称',
        fieId: 'company'
    },
    baseURL:{
        type: sequelize.STRING,
        allowNull: false,
        comment: '请求URL',
        fieId: 'baseURL'
    }
})

module.exports = Service